﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace Dabr.NET.OAuth
{
    public struct OAuthToken
    {
        public string Key, Secret;

        public OAuthToken(string key, string secret)
        {
            Key = key;
            Secret = secret;
        }

        // Note that __toString and to_string are integrated here
        // because of explicit manner of C# ToString.
        override public string ToString()
        {
            return String.Format("oauth_token={0}&oauth_token_secret={1}",
                OAuthUtil.UrlEncodeRfc3986(Key),
                OAuthUtil.UrlEncodeRfc3986(Secret));
        }
    }
}